-
Notifications
You must be signed in to change notification settings - Fork 24.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(benchpress): create component_benchmark macro #35692
feat(benchpress): create component_benchmark macro #35692
Conversation
c6d0f49
to
1601846
Compare
QuestionsIs dev-infra the correct place to put this under in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- either squash or use
fixup!
https://dev.to/koffeinfrei/the-git-fixup-workflow-386d. This is a single unit of work and should have single commit when merged. - The
tools/components/BUILD.bazel
file is empty. Is that intentional? If so leave a comment as to why an empty file is needed. - Can we have a clear description in the commit message as to the motivation of this change.
- I don't see any tests (or at least an example of working benchmark) How do I try it/know that it works.
a405099
to
5ff11b5
Compare
@mhevery Done |
The only TAP failures are already-failing targets |
Hi @wagnermaciel, it looks like this PR has a conflict with master branch. Could you please rebase it and resolve the conflict (and add the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just came across this. Awesome! LGTM
""" | ||
native.genrule( | ||
name = "copy_default_" + origin + "_file_genrule", | ||
srcs = ["//tools/components/defaults:" + origin], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit (for follow-up): It's more idiomatic to use substitutions. e.g.
"//tools/components/defaults:%s" % origin
Same could be done for all string concatenations in the file.
bb336b0
to
001888c
Compare
* Create component_benchmark macro * Change class_bindings benchmark to use component_benchmark
001888c
to
274466c
Compare
@wagnermaciel, FYI given that we've just released |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Currently we have a lot of repeat code for writing benchmark tests.
What is the new behavior?
Reduce the amount of duplicate code for these tests by wrapping the boilerplate code in a macro.
Does this PR introduce a breaking change?